package com.cnd.scm;

import com.cnd.scm.jdbcprocessor.helper.SqlHelper;
import com.cnd.scm.orm.repositoryproxy.PhoenixRepositoryProxyRegister;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

/**
 * @version V1.0
 * @ClassName: AppStart
 * @Description:TODO()
 * @author: 李启联
 * @date: 2019-12-19 09:47
 * @Copyright: Copyright (C), 2019 Xiamen C&D Information Technology co.,Ltd. All rights reserved.
 * 申明：本内容未经授权,禁止外泄以及用于其他商业项目.
 */
@SpringBootApplication
public class AppStart {

    @Autowired
    private SqlHelper sqlHelper;

    public static void main(String[] args) {

        SpringApplication.run(AppStart.class, args);
    }

    @Bean
    public PhoenixRepositoryProxyRegister phoenixRepositoryProxyRegister() {
        return new PhoenixRepositoryProxyRegister("com.cnd.scm.demo");
    }
}
